package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.ITaskRateDAO;
import org.jsbd.boss.domian.DaylimitBeanVO;
import org.jsbd.boss.domian.TaskRate;
import org.jsbd.boss.domian.TaskRateVO;
import org.springframework.stereotype.Repository;

@Repository("taskRateDAO")
public class TaskRateDAO extends CrackStatisticsBaseDao implements ITaskRateDAO {

	@Override
	public Map<String, Object> selectListWithPage(DataGridModel page, TaskRateVO tsVO) {
		tsVO = (tsVO == null ? new TaskRateVO() : tsVO);
		tsVO.setPageInfo(page);
	    Map<String, Object> results = new HashMap<String, Object>();
	    results.put("rows", super.queryForList("qy_task_rate_statistics.SELECT_LIST_WITH_PAGE", tsVO));
	    results.put("total", super.queryForCount("qy_task_rate_statistics.SELECT_COUNT_WITH_PAGE", tsVO));
	    return results;
	}


}
